package com.spider.business.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.spider.business.model.BasePaper;
import com.spider.business.service.BasePaperService;

/**
 *基本论文处理类 
 */
@RequestMapping("/basePaper")
@Controller
public class BasePaperAction {
	@RequestMapping(value="/insert")
	public String insertBasePaper(HttpServletRequest request,HttpServletResponse response){
		System.out.println(request.getParameter("hello"));
		BasePaper bp=new BasePaper();
		bp.setName("name");
		bp.setAddress("address");
		new BasePaperService().insertBean(bp);
		return "../index.jsp";
	}
}
